{extend name="default/base/base_joinin" /}
{block name="joinin_main"}

<div class="breadcrumb"><span class="iconfont">&#xe6ff;</span><span><a href="">{$Think.lang.homepage}</a></span> <span class="arrow">></span> <span>{$Think.lang.merchant_entry_application}</span> </div>
<div class="main">
    <div class="sidebar">
        <div class="title">
            <h3>{$Think.lang.merchant_entry_application}</h3>
        </div>
        <div class="content">
            {notempty name="help_list"}
            {foreach name="help_list" item="val" key="key" }
            <dl show_id="{$val.helptype_id}">
                <dt onclick="show_list('{$val.helptype_id}');" style="cursor: pointer;"> <i class="right"></i>{$val.helptype_name}</dt>
                <dd style="display:none;">
                    <ul>
                        {notempty name="$val.help_list"}
                        {foreach name="$val.help_list" item="v" key="k" }
                        <li> <i></i>
                            {notempty name="$v.help_url"}
                            <a href="{:url('Showhelp/index',['t_id'=>$v.helptype_id,'help_id'=>$v.help_id])}" target="_blank">{$v.help_title}</a>
                            {else /}
                            <a href="{$v.help_url}" target="_blank">{$v.help_title}</a>
                            {/notempty}
                        </li>
                        {/foreach}
                        {/notempty}
                    </ul>
                </dd>
            </dl>
            {/foreach}
            {/notempty}
            <dl>
                <dt class="{if $sub_step=='step0'}current{/if}"> <i class="right"></i>{$Think.lang.enter_agreement}</dt>
            </dl>
            <dl show_id="0">
                <dt onclick="show_list('0');" style="cursor: pointer;"> <i class="down"></i>{$Think.lang.submit_application}</dt>
                <dd>
                    <ul>
                        <li class="{if $step=='1'}current{/if}"><i></i>{$Think.lang.company_qualification_information}</li>
                        <li class="{if $step=='2'}current{/if}"><i></i>{$Think.lang.financial_qualification_information}</li>
                        <li class="{if $step=='3'}current{/if}"><i></i>{$Think.lang.store_operation_information}</li>
                    </ul>
                </dd>
            </dl>
            <dl>
                <dt class="{if $step=='4'}current{/if}"> <i class="right"></i>{$Think.lang.contract_signing_payment}</dt>
            </dl>
            <dl>
                <dt> <i class="right"></i>{$Think.lang.store_opening}</dt>
            </dl>
        </div>
        <div class="title">
            <h3>{$Think.lang.platform_contact}</h3>
        </div>
        <div class="content">
            <ul>
                {notempty name="phone_array"}
                {foreach name="phone_array" item="val" key="key" }
                {$Think.lang.phone}{$val}
                {/foreach}
                {/notempty}
                <li>{$Think.lang.email}{$Think.config.ds_config.site_email}</li>
            </ul>
        </div>
    </div>
    <div class="right-layout">
        <div class="joinin-step">
            <ul>
                <li class="step1 {if $step >= 0}current{/if}"><span>{$Think.lang.enter_agreement}</span></li>
                <li class="{if $step >= 1}current{/if}"><span>{$Think.lang.company_qualification_information}</span></li>
                <li class="{if $step >= 2}current{/if}"><span>{$Think.lang.financial_qualification_information}</span></li>
                <li class="{if $step >= 3}current{/if}"><span>{$Think.lang.store_operation_information}</span></li>
                <li class="{if $step >= 4}current{/if}"><span>{$Think.lang.contract_signing_payment}</span></li>
                <li class="step6"><span>{$Think.lang.store_opening}</span></li>
            </ul>
        </div>
        <div class="joinin-concrete">
            <!--区别部分 BEGIN-->



            <script type="text/javascript">
                        $(document).ready(function(){
                            $('#btn_apply_agreement_c2c_next').on('click', function() {
                                if($('#input_apply_agreement').prop('checked')) {
                                    window.location.href = HOMESITEURL+"/Sellerjoininc2c/step1.html";
                                } else {
                                    layer.msg('{$Think.lang.read_agree_agreement}');
                                }
                            });
                            $('#btn_apply_agreement_next').on('click', function() {
                                if($('#input_apply_agreement').prop('checked')) {
                                    window.location.href = HOMESITEURL+"/Sellerjoinin/step1.html";
                                } else {
                                    layer.msg('{$Think.lang.read_agree_agreement}');
                                }
                            });
                        });
            </script>

            <!-- 协议 -->
            <div id="apply_agreement" class="apply-agreement">
                <div class="title"><h3>{$Think.lang.entry_agreement}</h3></div>
                <div class="apply-agreement-content">
                    {:htmlspecialchars_decode($agreement)}
                </div>
                <div class="apple-agreement">
                    <input id="input_apply_agreement" name="input_apply_agreement" type="checkbox" checked />
                    <label for="input_apply_agreement">{$Think.lang.read_agree_above_agreement}</label>
                </div>
                <div class="bottom">
                    {if $Think.config.ds_config.store_joinin_open == 1}
                    <a id="btn_apply_agreement_c2c_next" href="javascript:;" class="btn">{$Think.lang.individual_entry}</a>
                    {/if}
                    <a id="btn_apply_agreement_next" href="javascript:;" class="btn">{$Think.lang.enterprise_entry}</a>
                </div>
            </div>





            <!--区别部分 END-->
        </div>
    </div>
</div>

{/block}


